package cn.craftyun.yunexam.service.impl;

import cn.craftyun.yunexam.entity.Exam;
import cn.craftyun.yunexam.mapper.ExamMapper;
import cn.craftyun.yunexam.service.ExamService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements ExamService {
    @Override
    public List<Map<String, Object>> getActiveExam(Integer count) {
        return getBaseMapper().getActiveExam(count);
    }

    @Override
    public IPage<Map<String, Object>> findAllExam(IPage<?> page) {
        return getBaseMapper().findAllExam(page);
    }
}
